/**
 * All right reserved@Raygo 2022~2030
 */

package com.raygo.runner.core.result;

import java.util.Map;

/**
 * 结果基类
 *
 * @author Raygo
 * @since 2022年5月26日
 */
public class Result implements Resultable {
    /**
     * result code
     */
    protected int code;

    /**
     * message
     */
    protected String error;

    /**
     * extend info
     */
    protected Map<String, Object> data;

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public String getError() {
        return error;
    }

    public void setError(String msg) {
        this.error = msg;
    }

    public void setData(Map<String, Object> data) {
        this.data = data;
    }

    public Map<String, Object> getData() {
        return data;
    }
}
